//
//  HomePassWordView.m
//  DBAChain
//
//  Created by Evan on 2018/9/18.
//  Copyright © 2018 Evan. All rights reserved.
//

#import "HomePassWordView.h"

@implementation HomePassWordView


-(void)initUI{
    self.backgroundColor = [UIColor colorWithRed:0/255 green:0/255 blue:0/255 alpha:0.2];
    self.viewCenter.layer.cornerRadius = 10;
    
    self.viewCenter.layer.shadowColor = [UIColor blackColor].CGColor;
    //        阴影的透明度
    self.viewCenter.layer.shadowOpacity = 0.3f;
    //        阴影的圆角
    self.viewCenter.layer.shadowRadius = 4.0f;
    
    self.hidden = YES;
}

- (IBAction)btnClose:(id)sender {
    self.hidden = YES;
    [self endEditing:YES];
}

- (IBAction)btnSubmit:(id)sender {
    if ([self.txtPwd.text isEqualToString:@""]) {
        [DKProgressHUD showErrorWithStatus:@"请正确输入支付密码"];
        return;
    }
    self.blockSubmit(self.txtPwd.text);
}


@end
